<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="LabRequest.aspx.cs" Inherits="LabRequest" Title="LabRequest" %>

<%@ MasterType VirtualPath="~/MasterPage.master" %>
<%@ Register Namespace="NS_Controls" TagPrefix="cc1" %>
<%@ Register Namespace="CustomControlsNS" TagPrefix="cc2" %>
<asp:Content ID="ContentDefault" ContentPlaceHolderID="ContentPlaceHolderContent"
    runat="Server">
    <link href="../../Styles/themes/fancy/tabs.css" rel="stylesheet" type="text/css" />
    <link href="../../Styles/themes/fancy/fancy-blue/fancy-blue.css" rel="stylesheet"
        type="text/css" />
    <link href="../../Styles/themes/opera/tabs.css" rel="stylesheet" type="text/css" />
    <asp:UpdatePanel ID="up1" runat="server">
        <ContentTemplate>
			<asp:Literal ID="output" runat="server" />
			<span id="clientUpdateProgress" runat="server" class="clsTextBoldYellow" style="display:none">
				(<% =Resources.GridView.PageLoading %>)
			</span>
			<!--input type="button" value="testFeature" onclick="onDeleteAnalyseSuccess(null);" /-->
            <ajaxToolKit:TabContainer ID="tabContainer" runat="server" CssClass="fancy fancy-blue"
                AutoPostBack="true" OnActiveTabChanged="tabActive_TabChanged">
                <ajaxToolKit:TabPanel ID="tabRequestInvestigation" runat="server" HeaderText="Cereri Investigatii" TabIndex="0">
                    <ContentTemplate>
                        <div id="buttons" style="width:90%">
                            <cc2:CustomButton ID="btnRequestSearch" runat="server" Text="Cauta investigatii existente" AccessKey="1"
                                OnServerClick="btnSearch_Click" />
                            <cc2:CustomButton ID="btnAddInvestigation" runat="server" Text="Adauga investigatie noua" AccessKey="7"
                                OnServerClick="btnAddInvestigation_Click" Visible="false" />

                            <asp:UpdateProgress ID="UpdateProgressTab1" runat="server" DisplayAfter="100" Visible="false">
                                <ProgressTemplate>
                                    <span class="clsTextBoldYellow">(<% =Resources.GridView.PageLoading %>)</span>
                                </ProgressTemplate>
                            </asp:UpdateProgress>
                        </div>
                        <div id="divSearch" runat="server" style="height: 100%; overflow: auto; display: block;">
                            <table width="98%">
                                <tr>
                                    <td>
                                        <div class="menu_th">
                                            <table>
                                                <tr>
                                                    <td>
                                                        <asp:Label ID="lblSearch" runat="server" CssClass="menu_th1">Cautare cereri de investigatii paraclinice</asp:Label>
                                                    </td>
                                                    <td>
                                                        <asp:UpdateProgress ID="UpdateProgressLabRequest" runat="server" DisplayAfter="100">
                                                            <ProgressTemplate>
                                                                <span class="clsTextBoldYellow">(<% =Resources.GridView.PageLoading %>)</span>
                                                            </ProgressTemplate>
                                                        </asp:UpdateProgress>
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                        <table width="100%">
                                            <tr>
                                                <td>
                                                    <table width="100%">
                                                        <tr>
                                                            <td style="width: 15%" class="tdn">
                                                                Cod cerere:
                                                            </td>
                                                            <td style="width: 15%" class="tdn">
                                                                <span class="tdSmall">
                                                                    <asp:TextBox ID="txtCodeRequest" runat="server" Width="350px" />
                                                                </span>
                                                            </td>
                                                            <td style="width: 15%" class="tdn">
                                                                Pacient:
                                                            </td>
                                                            <td style="width: 15%" class="tdn">
                                                                <span class="tdSmall">
                                                                    <asp:TextBox ID="txtPacient" runat="server" Width="350px" />
                                                                </span>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td style="width: 15%" class="tdn">
                                                                Nume Investigatie:
                                                            </td>
                                                            <td style="width: 15%" class="tdn">
                                                                <span class="tdSmall">
                                                                    <asp:TextBox ID="txtNameInv" runat="server" Width="350px" />
                                                                </span>
                                                            </td>
                                                            <td style="width: 15%" class="tdn">
                                                                Fisa:
                                                            </td>
                                                            <td style="width: 15%" class="tdn">
                                                                <span class="tdSmall">
                                                                    <asp:TextBox ID="txtFisa" runat="server" Width="350px" />
                                                                </span>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td style="width: 15%" class="tdn">
                                                                Medic:
                                                            </td>
                                                            <td style="width: 15%" class="tdn">
                                                                <span class="tdSmall">
                                                                    <asp:DropDownList ID="drpMedic" runat="server" Width="350px" />
                                                                </span>
                                                            </td>
                                                            <td style="width: 15%" class="tdn">
                                                                Sectia:
                                                            </td>
                                                            <td style="width: 15%" class="tdn">
                                                                <span class="tdSmall">
                                                                    <asp:DropDownList ID="drpSection" runat="server" Width="350px" />
                                                                </span>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td style="width: 15%" class="tdn">
                                                                <asp:Literal ID="startDate" runat="server" Text="<%$ Resources:DatabaseStrings, StartDate%>" />
                                                            </td>
                                                            <td style="width: 15%" class="tdn">
                                                                <span class="tdSmall">
                                                                    <asp:TextBox ID="txtDataStart" runat="server" MaxLength="10" />
                                                                    <asp:ImageButton ID="imgDataStart" runat="server" ImageUrl="~/images/Calendar_scheduleHS.png"
                                                                        BorderWidth="0" Width="16" Height="16" Style="position: relative; top: 0; left: 0;" />
                                                                    <ajaxToolKit:FilteredTextBoxExtender ID="FilteredTextBoxExtenderStart" runat="server"
                                                                        TargetControlID="txtDataStart" ValidChars=".-/0123456789" />
                                                                    <ajaxToolKit:CalendarExtender ID="calDataStart" runat="server" TargetControlID="txtDataStart"
                                                                        PopupButtonID="imgDataStart" Format="dd/MM/yyyy" />
                                                                    <ajaxToolKit:CalendarExtender ID="calDataStart2" runat="server" TargetControlID="txtDataStart" />
                                                                </span>
                                                            </td>
                                                            <td style="width: 15%" class="tdn">
                                                                <asp:Literal ID="endDate" runat="server" Text="<%$ Resources:DatabaseStrings, EndDate%>" />
                                                            </td>
                                                            <td style="width: 15%" class="tdn">
                                                                <span class="tdSmall">
                                                                    <asp:TextBox ID="txtDataEnd" runat="server" MaxLength="10" />
                                                                    <asp:ImageButton ID="imgDataEnd" runat="server" ImageUrl="~/images/Calendar_scheduleHS.png"
                                                                        BorderWidth="0" Width="16" Height="16" Style="position: relative; top: 0; left: 0;" />
                                                                    <ajaxToolKit:FilteredTextBoxExtender ID="FilteredTextBoxExtenderEnd" runat="server"
                                                                        TargetControlID="txtDataEnd" ValidChars=".-/0123456789" />
                                                                    <ajaxToolKit:CalendarExtender ID="calDataEnd" runat="server" TargetControlID="txtDataEnd"
                                                                        PopupButtonID="imgDataEnd" Format="dd/MM/yyyy" />
                                                                    <ajaxToolKit:CalendarExtender ID="calDataEnd2" runat="server" TargetControlID="txtDataEnd" />
                                                                </span>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td style="width: 15%" class="tdn">
                                                                Status:
                                                            </td>
                                                            <td style="width: 15%" class="tdn">
                                                                <span class="tdSmall">
                                                                    <asp:DropDownList ID="drpStatus" runat="server" Width="350px" />
                                                                </span>
                                                            </td>
                                                            <td style="width: 15%" class="tdn">
                                                                Domeniu investigatii:
                                                            </td>
                                                            <td style="width: 15%" class="tdn">
                                                                <span class="tdSmall">
                                                                    <asp:DropDownList ID="drpDomainInv" runat="server" Width="350px" />
                                                                </span>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td style="width: 15%" class="tdn">
                                                                Prioritate:
                                                            </td>
                                                            <td style="width: 15%" class="tdn">
                                                                <span class="tdSmall">
                                                                    <asp:DropDownList ID="drpPriority" runat="server" Width="350px" AutoPostBack="true" />
                                                                </span>
                                                            </td>
                                                            <td style="width: 15%" class="tdn">
                                                                Cu rezultate?:
                                                            </td>
                                                            <td style="width: 15%" class="tdn">
                                                                <span class="tdSmall">
                                                                    <asp:DropDownList ID="drpResults" runat="server" Width="350px" AutoPostBack="true" />
                                                                </span>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td style="width: 15%" class="tdn">
                                                                Tip aparat:
                                                            </td>
                                                            <td style="width: 15%" class="tdn" colspan="3">
                                                                <span class="tdSmall">
                                                                    <asp:DropDownList ID="drpMachines" runat="server" Width="350px" AutoPostBack="true" />
                                                                </span>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                        <div class="divEndTotal">
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <div id="divResultsSearch" runat="server" style="overflow: auto; display: none;">
                            <table width="98%">
                                <tr valign="top">
                                    <td>
                                        <div class="menu_th">
                                            <asp:Label ID="lblResults" runat="server" CssClass="menu_th">Rezultatele cautarii</asp:Label>
                                        </div>
                                        <asp:Repeater ID="rptLabRequest" runat="server">
                                            <HeaderTemplate>
                                                <table border="0" width="100%">
                                                    <tbody>
                                                        <tr class="tdh">
                                                            <td style="width: 5%">
                                                                COD
                                                            </td>
                                                            <td style="width: 5%">
                                                                Buletin
                                                            </td>
                                                            <td style="width: 15%">
                                                                Data
                                                            </td>
                                                            <td style="width: 10%">
                                                                Stare
                                                            </td>
                                                            <td style="width: 10%">
                                                                Tip Plata
                                                            </td>
                                                            <td style="width: 10%">
                                                                Prioritate
                                                            </td>
                                                            <td style="width: 15%">
                                                                Pacient
                                                            </td>
                                                            <td style="width: 10%">
                                                                Sectia
                                                            </td>
                                                            <td style="width: 35%">
                                                                Ceruta de:
                                                            </td>
                                                        </tr>
                                            </HeaderTemplate>
                                            <ItemTemplate>
                                                <tr>
                                                    <td class="tdn" style="width: 5%">
                                                        <asp:LinkButton ID="lnkLabRequest" CssClass="redFont" runat="server" OnClick="LoadLabRequest_Click"
                                                            CommandArgument='<%# Eval("[ID]")%>' ToolTip='<%# Eval("[PacientID]")%>'>
                                                                <%# getID(Eval("[ID]").ToString(), Eval("[deletedID]").ToString())%>
                                                        </asp:LinkButton>
                                                    </td>
                                                    <td class="tdn" style="width: 5%">
                                                        <asp:LinkButton ID="lnkLabBuletin" CssClass="redFont" runat="server" OnClick="LoadLabRequest_Click"
                                                            CommandArgument='<%# Eval("[ID]")%>' ToolTip='<%# Eval("[PacientID]")%>'>
																Buletin
                                                        </asp:LinkButton>
                                                    </td>
                                                    <td class="tdn" style="width: 15%">
                                                        <span class="greenFont">
                                                            <%# Server.HtmlEncode(DataBinder.Eval(Container.DataItem, "Date").ToString())%></span>
                                                    </td>
                                                    <td class="tdn" style="width: 10%">
                                                        <%# getStatus(Server.HtmlEncode(DataBinder.Eval(Container.DataItem, "RequestStatus").ToString()), Server.HtmlEncode(DataBinder.Eval(Container.DataItem, "Submited").ToString()), Server.HtmlEncode(DataBinder.Eval(Container.DataItem, "DeletedID").ToString()))%>
                                                    </td>
                                                    <td class="tdn" style="width: 10%">
                                                        <%# Server.HtmlEncode(DataBinder.Eval(Container.DataItem, "PaymentName").ToString())%>
                                                    </td>
                                                    <td class="tdn" style="width: 10%">
                                                        <%# getPriority(Server.HtmlEncode(DataBinder.Eval(Container.DataItem, "Priority").ToString()))%>
                                                    </td>
                                                    <td class="tdn" style="width: 15%">
                                                        <asp:LinkButton ID="lnkButtonRedirect" CssClass="redFont" runat="server" PostBackUrl='<%# "~/Pages/Hipocrate/Pacient.aspx?action=view&pacientID=" +  Eval("[PacientID]")%>'>
                                                            <span class="redFont">
                                                                <%# getPacient(Server.HtmlEncode(DataBinder.Eval(Container.DataItem, "PacientID").ToString()))%>
                                                            </span>
                                                        </asp:LinkButton>
                                                    </td>
                                                    <td class="tdn" style="width: 10%">
                                                        <%# Server.HtmlEncode(DataBinder.Eval(Container.DataItem, "SectionCode").ToString())%>
                                                    </td>
                                                    <td class="tdn" style="width: 35%">
                                                        <asp:LinkButton ID="lnkButtonMedic" CssClass="redFont" runat="server" PostBackUrl='<%# "~/Pages/Hipocrate/Search.aspx"%>'>
                                                            <span class="redFont">
                                                                <%# getMedic(Server.HtmlEncode(DataBinder.Eval(Container.DataItem, "MedicID").ToString()))%>
                                                            </span>
                                                        </asp:LinkButton>
                                                    </td>
                                                </tr>
                                            </ItemTemplate>
                                            <FooterTemplate>
                                                </tbody></table>
                                            </FooterTemplate>
                                        </asp:Repeater>
                                    </td>
                                </tr>
                            </table>
                            <div class="divEnd">
                            </div>
                            <asp:Label ID="lblCount" runat="server" Text="" CssClass="redFont" />
                            <div style="width: 210mm;">
                                <asp:Table runat="server" ID="tblPagination" Width="100%" BorderColor="Red" />
                            </div>
                            <table width="98%" border="0">
                                <tr>
                                    <td>
                                        <td>
                                            &nbsp;&nbsp;<asp:Label ID="lblCurrentPage" runat="server" Visible="false"></asp:Label>
                                        </td>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:UpdateProgress ID="upProgressPag" runat="server" DisplayAfter="100" Visible="false">
                                            <ProgressTemplate>
                                                <span class="clsTextBoldYellow">(<% =Resources.GridView.PageLoading %>)</span>
                                            </ProgressTemplate>
                                        </asp:UpdateProgress>
                                    </td>
                                    <td>
                                        &nbsp;&nbsp;<asp:Button ID="cmdPrev" runat="server" Text=" << " OnClick="cmdPrev_Click"
                                            Visible="false"></asp:Button>
                                        &nbsp;<asp:Button ID="cmdNext" runat="server" Text=" >> " OnClick="cmdNext_Click"
                                            Visible="false"></asp:Button>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </ContentTemplate>
                </ajaxToolKit:TabPanel>
                <ajaxToolKit:TabPanel ID="tabSpecificRequest" runat="server" HeaderText="" TabIndex="1">
					<ContentTemplate>
						<div id="pageStorage">
							<asp:Literal ID="strRequestID" runat="server" Visible="false" />
							<asp:Literal ID="strPacientID" runat="server" Visible="false" />
							<span id="pageReloadAddress" runat="server" style="display:none"></span>
						</div>
                        <div id="buttonsRequest" style="width:90%">
                            <cc2:CustomButton ID="btnSearchAnalyse" runat="server" Text="Cauta analize corespunzatoare" AccessKey="2"
                                OnServerClick="btnSearchAnalyse_Click" />
                            <cc2:CustomButton ID="btnRequestAddAnalyse" runat="server" Text="Adauga analize" AccessKey="3"
                                OnServerClick="btnAddRequestAnalyse_Click" Visible="false" />
                            <cc2:CustomButton ID="btnRequestSaveAnalyse" runat="server" Text="Salveaza analizele alese" AccessKey="4"
                                OnServerClick="btnSaveRequestAnalyse_Click" Visible="false" /> <!-- Analyse_Add ; Analyse_RemoveDeleted -->
                            <cc2:CustomButton ID="btnBackInvestigation" runat="server" Text="Inapoi la investigatie" AccessKey="5"
                                OnServerClick="btnBackInvestigation_Click" Visible="false" />
                            <cc2:CustomButton ID="btnSaveModified" runat="server" Text="Salveaza rezultatele" AccessKey="6"
                                OnServerClick="btnSaveModified_Click" Visible="false" /> <!-- Results_Save -->
                            <cc2:CustomButton ID="btnSaveInvestigation" runat="server" Text="Salveaza investigatia" AccessKey="8"
                                OnServerClick="btnSaveInvestigation_Click" Visible="false" /> <!-- LabRequest_Save -->

                            <asp:UpdateProgress ID="UpdateProgressTab1b" runat="server" DisplayAfter="100">
                                <ProgressTemplate>
                                    <span class="clsTextBoldYellow">(<% =Resources.GridView.PageLoading %>)</span>
                                </ProgressTemplate>
                            </asp:UpdateProgress>
                        </div>
                        <div id="divDetailsRequest" runat="server" style="overflow: auto; display: none;">
                            <table width="98%">
                                <tr valign="top">
                                    <td>
                                        <div class="menu_th" onclick="hideShowRequest();" style="cursor: hand">
                                            <table>
                                                <tr>
                                                    <td>
                                                        <asp:Image runat="server" ID="imgHideShow" ImageUrl="~/Images/Hipocrate/on_Down.jpg"
                                                            Width="20" Height="20" CssClass="lnkHideShow" />
                                                    </td>
                                                    <td>
                                                        <asp:Label ID="lblDetailsRequest" runat="server" />
                                                    </td>
                                                    <td>
                                                        <asp:UpdateProgress ID="upProgrDetailsRequest" runat="server" DisplayAfter="100">
                                                            <ProgressTemplate>
                                                                <span class="clsTextBoldYellow">(<% =Resources.GridView.PageLoading %>)</span>
                                                            </ProgressTemplate>
                                                        </asp:UpdateProgress>
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                        <table width="100%" id="trDetailsRequest">
                                            <thead class="tdh">
                                                <tr style="width: 100%">
                                                    <th width="25%">
                                                        PACIENT
                                                    </th>
                                                    <th width="25%">
                                                        FISA
                                                    </th>
                                                    <th width="50%">
                                                        STATUS
                                                    </th>
                                                </tr>
                                            </thead>
                                            <tr>
                                                <td>
                                                    <table width="100%">
                                                        <tr>
                                                            <td style="width: 35%" class="tdn">
                                                                Nume:
                                                            </td>
                                                            <td style="width: 65%" class="tdn">
                                                                <asp:LinkButton ID="detailsPacient" runat="server">
                                                                    <asp:Label ID="lblPacient" runat="server" CssClass="redFont" />
                                                                </asp:LinkButton>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td style="width: 35%" class="tdn">
                                                                CNP:
                                                            </td>
                                                            <td style="width: 65%" class="tdn">
                                                                <span class="tdSmall">
                                                                    <asp:Label ID="lblCNP" runat="server" /></span>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td style="width: 35%" class="tdn">
                                                                General:
                                                            </td>
                                                            <td style="width: 65%" class="tdn">
                                                                <span class="tdSmall">
                                                                    <asp:Label ID="lblGeneral" runat="server" /></span>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td style="width: 100%" class="tdn" colspan="2">
                                                                &nbsp;
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                                <td>
                                                    <table width="100%">
                                                        <tr>
                                                            <td style="width: 35%" class="tdn">
                                                                Tip:
                                                            </td>
                                                            <td style="width: 65%" class="tdn">
                                                                <span class="tdSmall">
                                                                    <asp:Label ID="lblType" runat="server" /></span>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td style="width: 35%" class="tdn">
                                                                Data:
                                                            </td>
                                                            <td style="width: 65%" class="tdn">
                                                                <span class="tdSmall">
                                                                    <asp:Label ID="lblDate" runat="server" /></span>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td style="width: 35%" class="tdn">
                                                                Medic:
                                                            </td>
                                                            <td style="width: 65%" class="tdn">
                                                                <span class="tdSmall">
                                                                    <asp:Label ID="lblMedic" runat="server" /></span>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td style="width: 35%" class="tdn">
                                                                Sectia:
                                                            </td>
                                                            <td style="width: 65%" class="tdn">
                                                                <span class="tdSmall">
                                                                    <asp:Label ID="lblSection" runat="server" /></span>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                                <td>
                                                    <table width="100%">
                                                        <tr>
                                                            <td style="width: 35%" class="tdn">
                                                                Ceruta:
                                                            </td>
                                                            <td style="width: 65%" class="tdn">
                                                                <span class="tdSmall">
                                                                    <asp:Label ID="lblRequestor" runat="server" /></span>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td style="width: 35%" class="tdn">
                                                                <asp:Label ID="lblValAnul" runat="server" />
                                                            </td>
                                                            <td style="width: 65%" class="tdn">
                                                                <span class="tdSmall">
                                                                    <asp:Label ID="lblStatus" runat="server" /></span>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td style="width: 35%" class="tdn" colspan="2">
                                                                <input type="button" id="btnChangers" value="Raport modificari" onclick="showChangers('1');"
                                                                    name="btnChangers">
                                                                <span class="tdSmall">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="lblCompleted"
                                                                    runat="server" /></span>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td style="width: 65%" class="tdn" colspan="2">
                                                                &nbsp;
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="3">
                                                    <div class="divEndTotal">
                                                    </div>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <div class="menu_th" onclick="hideShowReqBuletin();" style="cursor: hand">
                                            <table>
                                                <tr>
                                                    <td>
                                                        <asp:Image runat="server" ID="imgBuletin" ImageUrl="~/Images/Hipocrate/on_Down.jpg"
                                                            Width="20" Height="20" CssClass="lnkHideShow" />
                                                    </td>
                                                    <td>
                                                        <asp:Label ID="lblBuletinDetails" runat="server">Detalii Buletin:</asp:Label>
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                        <table width="100%" id="tblDetBuletin">
                                            <tr>
                                                <td>
                                                    <table width="100%">
                                                        <tr>
                                                            <td style="width: 10%" class="tdn">
                                                                Proba tehnica?:
                                                            </td>
                                                            <td style="width: 40%" class="tdn">
                                                                <span class="redFont"><b>
                                                                    <asp:CheckBox ID="chkProbeTech" runat="server" /> </span>
                                                            </td>
                                                            <td style="width: 10%" class="tdn">
                                                                S-a achitat:
                                                            </td>
                                                            <td style="width: 40%" class="tdn">
                                                                <span class="redFont"><b>
                                                                    <asp:CheckBox ID="chkAchitat" runat="server" /> </span>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td style="width: 10%" class="tdn">
                                                                Urgenta:
                                                            </td>
                                                            <td style="width: 40%" class="tdn">
                                                                <span class="redFont"><b>
                                                                    <asp:PlaceHolder ID="plcUrgenta" runat="server" />
                                                                    <asp:Label ID="lblUrgenta" runat="server" /></b> &nbsp;&nbsp;
                                                                </span>
                                                                <span>Greutate
                                                                    corporala:&nbsp;
                                                                </span>
                                                                <asp:TextBox ID="txtWeight" runat="server" Width="40px" />&nbsp;kg
                                                                <span>
																	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
																	Inaltime:&nbsp;
                                                                </span>
                                                                <asp:TextBox ID="txtHeight" runat="server" Width="40px" />&nbsp;cm
                                                            </td>
                                                            <td style="width: 25%" class="tdn">
                                                                Data cererii:
                                                            </td>
                                                            <td style="width: 25%" class="tdn">
                                                                <span class="tdSmall">
                                                                    <asp:Label ID="lblDateRequest" runat="server" />
                                                                </span>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td style="width: 10%" class="tdn">
                                                                Tip de plata:
                                                            </td>
                                                            <td style="width: 40%" class="tdn">
                                                                <span class="redFont"><b>
                                                                    <asp:DropDownList ID="drpPayment" runat="server" Width="200px" /></span>
                                                            </td>
                                                            <td style="width: 25%" class="tdn">
                                                                Numar registru:
                                                            </td>
                                                            <td style="width: 25%" class="tdn">
                                                                <asp:TextBox ID="txtRegister" runat="server" Width="200px" />
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td style="width: 10%" class="tdn" colspan="2">
                                                            </td>
                                                            <td style="width: 25%" class="tdn">
                                                                Nr chitanta:
                                                            </td>
                                                            <td style="width: 25%" class="tdn">
                                                                <asp:TextBox ID="txtChitanta" runat="server" Width="200px" />
                                                            </td>
                                                        </tr>
                                                        <tr id="trDeath" runat="server" style="display: none">
                                                            <td style="width: 10%" class="tdn">
                                                                Data inregistrarii decedatului:
                                                            </td>
                                                            <td style="width: 40%" class="tdn">
                                                                <span class="redFont"><b>
                                                                    <asp:DropDownList ID="drpMedicSurviver" runat="server" Width="200px" /></span>
                                                            </td>
                                                            <td colspan="2">
                                                                <asp:PlaceHolder ID="plcDeath" runat="server" />
                                                            </td>
                                                        </tr>
                                                        <tr id="trSex" runat="server" style="display: none">
                                                            <td style="width: 10%" class="tdn">
                                                                Pacienta insarcinata?:
                                                            </td>
                                                            <td style="width: 40%" class="tdn">
                                                                <span class="tdSmall">
                                                                    <asp:Label ID="lblInsarcinata" runat="server" /></span>
                                                            </td>
                                                            <td style="width: 10%" class="tdn" colspan="2">
                                                            </td>
                                                        </tr>
                                                        <tr id="trSection" runat="server" style="display: none">
                                                            <td style="width: 10%" class="tdn">
                                                                Sectia:
                                                            </td>
                                                            <td style="width: 40%" class="tdn">
                                                                <asp:PlaceHolder ID="plcSection" runat="server" />
                                                            </td>
                                                            <td style="width: 10%" class="tdn" colspan="2">
                                                            </td>
                                                        </tr>
                                                        <tr id="trinfSupl" runat="server" style="display: none">
                                                            <td style="width: 10%" class="tdn">
                                                                Informatii suplimentare::
                                                            </td>
                                                            <td style="width: 40%" class="tdn">
                                                                <asp:TextBox ID="txtDescription" runat="server" Width="80%" Height="30px" />
                                                            </td>
                                                            <td style="width: 25%" class="tdn">
                                                                Diagnostic trimitere:
                                                            </td>
                                                            <td style="width: 25%" class="tdn">
                                                                <asp:TextBox ID="txtSentDiags" runat="server" Width="80%" Height="30px" />
                                                            </td>
                                                        </tr>
                                                        <tr id="trCheckIN" runat="server" style="display: none">
                                                            <td style="width: 10%" class="tdn">
                                                                Internat?
                                                            </td>
                                                            <td style="width: 40%" class="tdn">
                                                                <asp:Label ID="lblCheckedIn" runat="server" />
                                                            </td>
                                                            <td style="width: 25%" class="tdn">
                                                                S-au epuizat celelalte metode de diagnostic?
                                                            </td>
                                                            <td style="width: 25%" class="tdn">
                                                                <asp:Label ID="lblOtherDiagsOff" runat="server" />
                                                            </td>
                                                        </tr>
                                                        <tr id="trExamenCRT" runat="server" style="display: none">
                                                            <td style="width: 10%" class="tdn">
                                                                Examen CT anterior?
                                                            </td>
                                                            <td style="width: 40%" class="tdn">
                                                                <asp:Label ID="lblPreviousCT" runat="server" />
                                                            </td>
                                                            <td style="width: 25%" class="tdn">
                                                                Toleranta la substanta iodata?
                                                            </td>
                                                            <td style="width: 25%" class="tdn">
                                                                <asp:Label ID="lblIodOK" runat="server" />
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td style="width: 10%" class="tdn">
                                                                Comentarii si Observatii:
                                                            </td>
                                                            <td style="width: 40%" class="tdn">
                                                                <span class="redFont"><b>
                                                                    <asp:TextBox ID="txtCommnets" runat="server" Width="80%" Height="30px" /></span>
                                                            </td>
                                                            <td style="width: 25%" class="tdn">
                                                                Diagnostic stabilit:
                                                            </td>
                                                            <td style="width: 25%" class="tdn">
                                                                <span class="redFont"><b>
                                                                    <asp:TextBox ID="txtDiagnostic" runat="server" Width="80%" Height="30px" /></span>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td style="width: 10%" class="tdn">
                                                                Navigare rapida:
                                                            </td>
                                                            <td style="width: 40%" class="tdn">
                                                                <span class="tdSmall">
                                                                    <asp:TextBox ID="txtLink" runat="server" Width="40px" />&nbsp;</span> <span class="tdSmall">
                                                                        <asp:PlaceHolder ID="plkQuickLink" runat="server" />
                                                                    </span>
                                                            </td>
                                                            <td style="width: 10%" class="tdn" colspan="2">
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td style="width: 10%" class="tdn">
                                                                Costul cererii:
                                                            </td>
                                                            <td style="width: 40%" class="tdn">
                                                                <span class="redFont"><b>
                                                                    <asp:Label ID="lblCosts" runat="server" /></b> </span>
                                                            </td>
                                                            <td style="width: 10%" class="tdn" colspan="2">
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <div class="divEndTotal">
                                                    </div>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <br />
                        <div id="divTestRequest" runat="server" style="overflow: auto; display: none;">
                            <table width="98%">
                                <tr valign="top">
                                    <td>
                                        <div class="menu_th">
                                            <asp:Label ID="lblTestRequest" runat="server" CssClass="menu_th">Lista de teste selectate</asp:Label>
                                        </div>
                                        <div>
                                            <asp:LinkButton ID="lnkVisual" CssClass="redFont" runat="server" OnClick="BuletinRedirect_Click"
                                                CommandArgument='visual'>
                                                <span class="redFont">Vizualizeaza buletin>>></span>&nbsp;&nbsp;&nbsp;
                                            </asp:LinkButton>
                                            <asp:LinkButton ID="LinkButton2" CssClass="redFont" runat="server" OnClick="BuletinRedirect_Click"
                                                CommandArgument='print'>
                                                <span class="redFont">Tipareste buletin>>></span>
                                            </asp:LinkButton>
                                        </div>
                                        <asp:Repeater ID="rptTestRequest" runat="server" OnItemDataBound="RequestRepeater_ItemDataBound">
                                            <HeaderTemplate>
                                                <table border="0" width="100%">
                                                    <tbody>
                                                        <tr class="tdh">
                                                            <td style="width: 5%">
                                                                Manual
                                                            </td>
                                                            <td style="width: 65%">
                                                                Nume
                                                            </td>
                                                            <td style="width: 30%" align="right">
                                                                Aparat
                                                            </td>
                                                        </tr>
                                            </HeaderTemplate>
                                            <ItemTemplate>
                                                <tr>
                                                    <td class="tdn" style="width: 100%" colspan="2">
                                                        <asp:LinkButton ID="lnkTestRequest" CssClass="redFont" runat="server" OnClick="TestRequest_Click"
                                                            CommandArgument='<%# Eval("[RequestID]")%>'>
                                                            <span class="redFont"><strong>
																Cererea <%# Eval("[RequestID]")%>
                                                                -
                                                                <%# Server.HtmlEncode(DataBinder.Eval(Container.DataItem, "Class").ToString())%>
                                                            </strong></span>
                                                        </asp:LinkButton>
                                                        <span>&nbsp;&nbsp;&nbsp; Data sosire Proba:<asp:TextBox ID="txtPDateProbe" runat="server" />
                                                            <asp:LinkButton ID="lnkValidate" CssClass="redFont" runat="server" OnClick="Validate_Click"
                                                                CommandArgument='<%# Eval("[RequestID]")%>' ToolTip='<%# Eval("[Class]")%>'>
                                                                 <span class="redFont">Valideaza</span>
                                                            </asp:LinkButton>
                                                            <asp:LinkButton ID="lnkInvalidate" CssClass="redFont" runat="server" OnClick="Invalidate_Click"
                                                                CommandArgument='<%# Eval("[RequestID]")%>' ToolTip='<%# Eval("[Class]")%>'>
                                                                 <span class="redFont">Devalideaza</span>
                                                            </asp:LinkButton>
                                                        </span>
                                                    </td>
                                                    <td class="tdn" style="width: 100%">
                                                        <asp:LinkButton ID="lnkModifyResults" CssClass="redFont" runat="server" OnClick="ModifyResults_Click"
                                                            CommandArgument='<%# Eval("[Class]")%>'>
                                                                 <span class="redFont">MODIFICA TOATE REZULTATELE</span>
                                                        </asp:LinkButton>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                        <asp:LinkButton ID="LinkButton1" CssClass="redFont" runat="server" OnClick="BuletinRedirect_Click"
                                                            CommandArgument='<%# Eval("[Class]")%>'>
                                                                 <span class="redFont">Buletin</span>
                                                        </asp:LinkButton>
                                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                        <asp:CheckBox ID="chkBuletin" runat="server" />
                                                    </td>
                                                </tr>
                                                <asp:PlaceHolder ID="plcHolder" runat="server" />
                                            </ItemTemplate>
                                            <FooterTemplate>
                                                </tbody></table>
                                            </FooterTemplate>
                                        </asp:Repeater>
                                    </td>
                                </tr>
                            </table>
                            <div class="divEnd">
                            </div>
                        </div>
                        <div id="divModifyResults" runat="server" style="overflow: auto; display: none;">
                            <table width="98%">
                                <tr valign="top">
                                    <td>
                                        <div class="menu_th">
                                            <table>
                                                <tr>
                                                    <td>
                                                        <asp:Label ID="lblModify" runat="server" CssClass="menu_th1" />
                                                    </td>
                                                    <td>
                                                        <asp:UpdateProgress ID="upProModify" runat="server" DisplayAfter="100">
                                                            <ProgressTemplate>
                                                                <span class="clsTextBoldYellow">(<% =Resources.GridView.PageLoading %>)</span>
                                                            </ProgressTemplate>
                                                        </asp:UpdateProgress>
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                        <asp:PlaceHolder ID="plcModifyResults" runat="server" />
                                        <div class="divEndTotal">
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <div id="divAddInvestigation" runat="server" style="height: 100%; overflow: auto;
                            display: none;">
                            <table width="98%">
                                <tr>
                                    <td>
                                        <div class="menu_th">
                                            <table>
                                                <tr>
                                                    <td>
                                                        <asp:Label ID="lblInvPatient" runat="server">Detalii pacient</asp:Label>
                                                    </td>
                                                    <td>
                                                        <asp:UpdateProgress ID="upProInv" runat="server" DisplayAfter="100">
                                                            <ProgressTemplate>
                                                                <span class="clsTextBoldYellow">(<% =Resources.GridView.PageLoading %>)</span>
                                                            </ProgressTemplate>
                                                        </asp:UpdateProgress>
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                        <table width="100%">
                                            <tr>
                                                <td>
                                                    <table width="100%">
                                                        <tr>
                                                            <td style="width: 15%" class="tdn">
                                                                Nume:
                                                            </td>
                                                            <td style="width: 15%" class="tdn">
                                                                <span class="tdSmall">
                                                                    <asp:TextBox ID="txtInvName" runat="server" Width="200px" /><span>*</span> </span>
                                                                <asp:ImageButton ID="imgPatient" runat="server" ImageUrl="~/images/mGlass.png" OnClick="imgPatientName_Click"
                                                                    ToolTip="Click pentru a cauta in lista pacientilor" BorderWidth="0" Width="16"
                                                                    Height="12" />
                                                            </td>
                                                            <td style="width: 15%" class="tdn">
                                                                Prenume:
                                                            </td>
                                                            <td style="width: 15%" class="tdn">
                                                                <span class="tdSmall">
                                                                    <asp:TextBox ID="txtInvSurname" runat="server" Width="200px" /><span>*</span>
                                                                </span>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td style="width: 15%" class="tdn">
                                                                CNP:
                                                            </td>
                                                            <td style="width: 15%" class="tdn" colspan="3">
                                                                <span class="tdSmall">
                                                                    <asp:TextBox ID="txtInvCNP" runat="server" Width="200px" MaxLength="13" onchange="cl_validate()" />
                                                                </span>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td style="width: 15%" class="tdn">
                                                                Nascut:
                                                            </td>
                                                            <td style="width: 15%" class="tdn">
                                                                <asp:TextBox ID="txtInvNascut" runat="server" Width="200px" />
                                                            </td>
                                                            <td style="width: 15%" class="tdn">
                                                                Sex:
                                                            </td>
                                                            <td style="width: 15%" class="tdn">
                                                                <asp:DropDownList ID="drpInvSex" runat="server" Width="200px" />
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td style="width: 15%" class="tdn">
                                                                Judet:
                                                            </td>
                                                            <td style="width: 15%" class="tdn">
                                                                <asp:DropDownList ID="drpJudet" runat="server" Width="200px" AutoPostBack="true"
                                                                    OnSelectedIndexChanged="districtZone_IndexChanged" />
                                                                <span>*</span>
                                                            </td>
                                                            <td style="width: 15%" class="tdn">
                                                                Localitate:
                                                            </td>
                                                            <td style="width: 15%" class="tdn">
                                                                <asp:TextBox ID="txtLocalitate" runat="server" Width="200px" ReadOnly="true" />
                                                                <span>*</span>
                                                                <asp:ImageButton ID="imgLinkZoneName" runat="server" ImageUrl="~/images/mGlass.png"
                                                                    OnClick="imgLinkZoneName_Click" ToolTip="Click pentru a cauta in lista localitatilor judetului"
                                                                    BorderWidth="0" Width="16" Height="12" />
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                        <div class="divEndTotal">
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <div class="menu_th">
                                            <table>
                                                <tr>
                                                    <td>
                                                        <asp:Label ID="lblInvMedic" runat="server">Detalii medic trimitator</asp:Label>
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                        <table width="100%">
                                            <tr>
                                                <td>
                                                    <table width="100%">
                                                        <tr id="trAddInvMedic" onclick="disabledTR('1');">
                                                            <td style="width: 10%" class="tdn">
                                                                Adauga Medic:
                                                            </td>
                                                            <td style="width: 5%" class="tdn">
                                                                <asp:RadioButton ID="rdAddMedic" Checked="true" runat="server"/>
                                                                <label for="rdAddMedic">
                                                                </label>
                                                            </td>
                                                            <td style="width: 85%">
                                                                <table>
                                                                    <tr>
                                                                        <td style="width: 15%" class="tdn">
                                                                            Nume:
                                                                        </td>
                                                                        <td style="width: 15%" class="tdn">
                                                                            <asp:TextBox ID="txtInvMedicName" runat="server" Width="200px" />
                                                                        </td>
                                                                        <td style="width: 15%" class="tdn">
                                                                            Prenume:
                                                                        </td>
                                                                        <td style="width: 15%" class="tdn">
                                                                            <asp:TextBox ID="txtInvMedicSurName" runat="server" Width="200px" />
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td style="width: 15%" class="tdn">
                                                                            Parafa:
                                                                        </td>
                                                                        <td style="width: 15%" class="tdn">
                                                                            <asp:TextBox ID="txtInvParafa" runat="server" Width="200px" />
                                                                        </td>
                                                                        <td style="width: 15%" class="tdn">
                                                                            Medic Cod CAS:
                                                                        </td>
                                                                        <td style="width: 15%" class="tdn">
                                                                            <asp:TextBox ID="txtMedicCodCAS" runat="server" Width="200px" />
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td style="width: 15%" class="tdn">
                                                                            Tip Medic:
                                                                        </td>
                                                                        <td style="width: 15%" class="tdn" colspan="3">
                                                                            <asp:DropDownList ID="drpInvMedic" runat="server" Width="200px" />
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                        <tr id="trInvMedicul" onclick="disabledTR('');">
                                                            <td style="width: 10%" class="tdn">
                                                                Medicul:
                                                            </td>
                                                            <td style="width: 5%" class="tdn">
                                                                <asp:RadioButton ID="rInvMedic" Checked="false" runat="server"/>
                                                                <label for="rdInvAddMedic">
                                                                </label>
                                                            </td>
                                                            <td style="width: 85%">
                                                                <table>
                                                                    <tr>
                                                                        <td style="width: 15%" class="tdn" colspan="3">
                                                                            <asp:DropDownList ID="drpInvMedicul" runat="server" Width="200px" />
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <div class="divEndTotal">
                                                    </div>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <div class="menu_th">
                                            <table>
                                                <tr>
                                                    <td>
                                                        <asp:Label ID="lblInvBuletin" runat="server">Detalii Buletin</asp:Label>
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                        <table width="100%">
                                            <tr>
                                                <td>
                                                    <table width="100%">
                                                        <tr>
                                                            <td style="width: 35%" class="tdn" colspan="2">
                                                                <span>Urgenta:</span>
                                                                <asp:CheckBox ID="chkInvUrgency" runat="server" /><span class="redFont"><b>
                                                                    <asp:Label ID="lblInvWeight" runat="server" /></b> &nbsp;&nbsp; </span>
                                                                <span>Greutate
                                                                    corporala:&nbsp;
                                                                </span>
                                                                <asp:TextBox ID="txtInvWeight" runat="server" Width="40px" />&nbsp;kg
                                                                <span>
																	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
																	Inaltime:&nbsp;
                                                                </span>
                                                                <asp:TextBox ID="txtInvHeight" runat="server" Width="40px" />&nbsp;cm
                                                            </td>
                                                            <td style="width: 15%" class="tdn">
                                                                Data cererii:
                                                            </td>
                                                            <td style="width: 15%" class="tdn">
                                                                <span class="tdSmall">
                                                                    <asp:TextBox ID="txtINVDate" runat="server" MaxLength="10" />
                                                                    <asp:ImageButton ID="imgInvDate" runat="server" ImageUrl="~/images/Calendar_scheduleHS.png"
                                                                        BorderWidth="0" Width="16" Height="16" Style="position: relative; top: 0; left: 0;" />
                                                                    <ajaxToolKit:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server"
                                                                        TargetControlID="txtINVDate" ValidChars=".-/0123456789" />
                                                                    <ajaxToolKit:CalendarExtender ID="calInvDate" runat="server" TargetControlID="txtINVDate"
                                                                        PopupButtonID="imgInvDate" Format="dd/MM/yyyy" />
                                                                    <ajaxToolKit:CalendarExtender ID="calINVDate2" runat="server" TargetControlID="txtINVDate" />
                                                                </span>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td style="width: 15%" class="tdn">
                                                                Tip de plata:
                                                            </td>
                                                            <td style="width: 15%" class="tdn">
                                                                <span class="redFont"><b>
                                                                    <asp:DropDownList ID="drpInvPayment" runat="server" Width="200px" /></span>
                                                            </td>
                                                            <td style="width: 15%" class="tdn">
                                                                Numar registru:
                                                            </td>
                                                            <td style="width: 15%" class="tdn">
                                                                <asp:TextBox ID="txtInvReg" runat="server" Width="200px" />
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td style="width: 15%" class="tdn" colspan="2">
                                                            </td>
                                                            <td style="width: 15%" class="tdn">
                                                                Nr chitanta:
                                                            </td>
                                                            <td style="width: 15%" class="tdn">
                                                                <asp:TextBox ID="txtInvChit" runat="server" Width="200px" />
                                                            </td>
                                                        </tr>
                                                        <tr id="Tr1" runat="server" style="display: none">
                                                            <td style="width: 15%" class="tdn">
                                                                Sectia:
                                                            </td>
                                                            <td style="width: 15%" class="tdn" colspan="2">
                                                                <asp:CheckBox ID="chkInvLab" runat="server" />
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td style="width: 35%" class="tdn" colspan="3">
                                                                <span>Laborator:</span>
                                                                <asp:CheckBox ID="chkInvLaboratory" runat="server" />
                                                            </td>
                                                            <td style="width: 15%" class="tdn">
                                                                &nbsp;
                                                            </td>
                                                        </tr>
                                                        <tr id="Tr2" runat="server">
                                                            <td style="width: 15%" class="tdn">
                                                                Informatii suplimentare:
                                                            </td>
                                                            <td style="width: 15%" class="tdn">
                                                                <asp:TextBox ID="txtInvInfSuplim" runat="server" Width="80%" Height="30px" />
                                                            </td>
                                                            <td style="width: 15%" class="tdn">
                                                                Diagnostic trimitere:
                                                            </td>
                                                            <td style="width: 15%" class="tdn">
                                                                <asp:TextBox ID="txtInvDiagnostic" runat="server" Width="80%" Height="30px" />
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td style="width: 15%" class="tdn">
                                                                Costul cererii:
                                                            </td>
                                                            <td style="width: 15%" class="tdn">
                                                                <span class="redFont"><b>
                                                                    <asp:Label ID="lblInvCost" runat="server" />0.00</b> </span>
                                                            </td>
                                                            <td style="width: 15%" class="tdn" colspan="2">
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <div class="divEndTotal">
                                                    </div>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </div>
					</ContentTemplate>
                </ajaxToolKit:TabPanel>
                <ajaxToolKit:TabPanel ID="tabRequestBulkValidate" runat="server" TabIndex="2" ToolTip="Validare Buletine">
					<ContentTemplate>
						<asp:UpdateProgress ID="UpdateProgressTab2" runat="server" DisplayAfter="100">
							<ProgressTemplate>
								<span class="clsTextBoldYellow">(<% =Resources.GridView.PageLoading %>)</span>
							</ProgressTemplate>
						</asp:UpdateProgress>
					</ContentTemplate>
                </ajaxToolKit:TabPanel>
                <ajaxToolKit:TabPanel ID="tabRequestBulk" runat="server" HeaderText="Validare Buletine" TabIndex="3">
					<ContentTemplate>
						<div id="divFiltreBulk" runat="server">
                            <table width="98%">
                                <tr>
                                    <td>
<%--
--%>
<%--
	<tr>
		<td class="tdn" valign="top" width="1%" nowrap>:</td>
		<td class="tdn">
			<table width="100%">
			<tr>
				<td ecked><label for="class0">&nbsp;Toate</label></td>
			</tr>
	<%
	//already retrieved: "select distinct LD.ID, LD.Domain from LAB_DOMAINS LD where LD.Active=1 order by LD.Domain"

	while not rs.EOF
	%>
			<tr>
				<td class="tdn"><input type="radio" value="<%= rs("Domain")%>" id="class<%= count%>" name="class">&nbsp;
					<label for="class<%= count%>"><%= rs("Domain")%></label>
				</td>
			</tr>
	<%
		count = count + 1
		rs.MoveNext
	wend
	rs.Close
	%>
			</table>
		</td>
	</tr>
	</table>

--%>
                                        <!-- Pregatire validare buletine analize: -->
                                        <table width="100%">
                                            <tr class="tdn" id="IdListBulk">
                                                <td nowrap>
                                                    Lista coduri:
                                                </td>
                                                <td colspan="3" valign="middle">
                                                    <asp:TextBox ID="strIDS" runat="server" Width="420px" /><!--
                                                    --><i>&nbsp;(ex: 123, 124, 130, 133-150)</i>
                                                </td>
                                            </tr>
                                            <tr class="tdn" id="timeIntervalBulk">
                                                <td style="width: 15%">
													<!-- Data de inceput -->
                                                    <asp:Literal ID="startDateBulk" runat="server" Text="<%$ Resources:DatabaseStrings, StartDate%>" />
                                                </td>
                                                <td style="width: 35%">
                                                    <span class="tdSmall">
                                                        <asp:TextBox ID="strStartDateBulk" runat="server" MaxLength="10" />
                                                        <asp:ImageButton ID="imgStartDateBulk" runat="server" ImageUrl="~/images/Calendar_scheduleHS.png"
                                                            BorderWidth="0" Width="16" Height="16" Style="position: relative; top: 0; left: 0;" />
                                                        <ajaxToolKit:FilteredTextBoxExtender ID="FilteredTextStartBV" runat="server"
                                                            TargetControlID="strStartDateBulk" ValidChars=".-/0123456789" />
                                                        <ajaxToolKit:CalendarExtender ID="calStartDateBulk" runat="server" TargetControlID="strStartDateBulk"
                                                            PopupButtonID="imgStartDateBulk" />
                                                        <ajaxToolKit:CalendarExtender ID="calStartDateBulk2" runat="server" TargetControlID="strStartDateBulk" />
                                                    </span>
                                                </td>
                                                <td style="width: 15%">
													<!-- Data de sfarsit -->
                                                    <asp:Literal ID="endDateBulk" runat="server" Text="<%$ Resources:DatabaseStrings, EndDate%>" />
                                                </td>
                                                <td style="width: 35%">
                                                    <span class="tdSmall">
                                                        <asp:TextBox ID="strEndDateBulk" runat="server" MaxLength="10" />
                                                        <asp:ImageButton ID="imgEndDateBulk" runat="server" ImageUrl="~/images/Calendar_scheduleHS.png"
                                                            BorderWidth="0" Width="16" Height="16" Style="position: relative; top: 0; left: 0;" />
                                                        <ajaxToolKit:FilteredTextBoxExtender ID="FilteredTextEndBV" runat="server"
                                                            TargetControlID="strEndDateBulk" ValidChars=".-/0123456789" />
                                                        <ajaxToolKit:CalendarExtender ID="calEndDateBulk" runat="server" TargetControlID="strEndDateBulk"
                                                            PopupButtonID="imgEndDateBulk" />
                                                        <ajaxToolKit:CalendarExtender ID="calEndDateBulk2" runat="server" TargetControlID="strEndDateBulk" />
                                                    </span>
                                                </td>
                                            </tr>
                                            <tr class="tdn" id="sectionMedicBulk">
                                                <td style="width: 15%">
                                                    Sectia:
                                                </td>
                                                <td style="width: 35%">
                                                    <asp:DropDownList ID="strSectionBulk" runat="server" />
                                                </td>
                                                <td style="width: 15%">
                                                    Medicul:
                                                </td>
                                                <td style="width: 35%">
                                                    <asp:DropDownList ID="strMedicBulk" runat="server" />
                                                </td>
                                            </tr>
                                            <tr class="tdn" id="LabDomainsBulk" runat="server">
                                                <td style="width: 15%">
                                                    Pe tipuri:
                                                </td>
                                                <td style="width: 85%" colspan="3">
                                                    <asp:DropDownList ID="strLabDomainsBulk" runat="server" />
                                                </td>
                                            </tr>
                                            <tr class="tdn">
                                                <td colspan="2" align="right">
                                                    <cc2:CustomButton ID="bulkProcessing" runat="server"
														OnServerClick="bulkProcessing_Click" Text="Validare" />
                                                </td>
                                                <td colspan="2">&nbsp;</td>
                                            </tr>
                                        </table>
                                        <div class="divEndTotal">
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </div>
						<div id="divResultsBulk" runat="server">
                            <table width="98%">
                                <tr>
                                    <td>
										<asp:UpdateProgress ID="UpdateProgressTab3" runat="server" DisplayAfter="100">
											<ProgressTemplate>
												<span class="clsTextBoldYellow">(<% =Resources.GridView.PageLoading %>)</span>
											</ProgressTemplate>
										</asp:UpdateProgress>
                                    </td>
                                </tr>
                                <tr>
									<td>
										<asp:Panel ID="bulkProcessingFeedback" runat="server" BorderWidth="1" Height="280px" Width="90%">
											<iframe id="processingResults" runat="server" src="about:blank" height="280px" width="100%" scrolling="yes">
												&nbsp; / BulkProcessing.aspx
												<!-- ... -->
												&nbsp;
											</iframe>
										</asp:Panel>
										<!--img src="../../Images/Hipocrate/spacer.gif" border="1" height="280px" width="90%" /-->
									</td>
                                </tr>
                            </table>
						</div>
					</ContentTemplate>
                </ajaxToolKit:TabPanel>
                <ajaxToolKit:TabPanel ID="tabRequestBulkClose" runat="server" HeaderText="Inchidere Buletine" TabIndex="4" ToolTip="Inchidere Buletine">
					<ContentTemplate>
						<asp:UpdateProgress ID="UpdateProgressTab4" runat="server" DisplayAfter="100">
							<ProgressTemplate>
								<span class="clsTextBoldYellow">(<% =Resources.GridView.PageLoading %>)</span>
							</ProgressTemplate>
						</asp:UpdateProgress>
					</ContentTemplate>
                </ajaxToolKit:TabPanel>
            </ajaxToolKit:TabContainer>
            <div id="divAddAnalyseRequest" runat="server" style="height: 100%; overflow: auto;
                display: block;">
                <table width="98%">
                    <tr>
                        <td>
                            <div class="menu_th">
                                <table>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblAnalyseRequest" runat="server" CssClass="menu_th1">Filtrare Investigatii Existente</asp:Label>
                                        </td>
                                        <td>
                                            <asp:UpdateProgress ID="upProAnalyse" runat="server" DisplayAfter="100">
                                                <ProgressTemplate>
                                                    <span class="clsTextBoldYellow">(<% =Resources.GridView.PageLoading %>)</span>
                                                </ProgressTemplate>
                                            </asp:UpdateProgress>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                            <table width="100%">
                                <tr>
                                    <td>
                                        <table width="100%">
                                            <tr>
                                                <td style="width: 15%" class="tdn">
                                                    Nume investigatii/grup::
                                                </td>
                                                <td style="width: 15%" class="tdn">
                                                    <span class="tdSmall">
                                                        <asp:TextBox ID="txtNameInvestigation" runat="server" Width="350px" />
                                                    </span>
                                                </td>
                                                <td style="width: 15%" class="tdn" colspan="2">
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 15%" class="tdn">
                                                    Clase de investigatii:
                                                </td>
                                                <td style="width: 15%" class="tdn">
                                                    <span class="tdSmall">
                                                        <asp:DropDownList ID="drpClassInvestigation" runat="server" Width="350px" />
                                                    </span>
                                                </td>
                                                <td style="width: 15%" class="tdn">
                                                    Grupuri de investigatii:
                                                </td>
                                                <td style="width: 15%" class="tdn">
                                                    <span class="tdSmall">
                                                        <asp:DropDownList ID="drpGroupInvestigation" runat="server" Width="350px" />
                                                    </span>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 15%" class="tdn">
                                                    Tipul probei:
                                                </td>
                                                <td style="width: 15%" class="tdn">
                                                    <span class="tdSmall">
                                                        <asp:DropDownList ID="drpProbe" runat="server" Width="350px" />
                                                    </span>
                                                </td>
                                                <td style="width: 15%" class="tdn" colspan="2">
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                            <div class="divEndTotal">
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="tdn">
                            <span class="greenFont">Selectati sau deselectati una sau mai multe investigatii si
                                apoi apasati <i>Salveaza</i> pentru a inregistra modificarile :</span>
                        </td>
                    </tr>
                    <tr>
                        <td class="tdn">
                            <ajaxToolKit:TabContainer ID="tbAnalyseAdd" runat="server" CssClass="opera" AutoPostBack="true"
                                OnActiveTabChanged="tabAnalyseActive_TabChanged">
                                <ajaxToolKit:TabPanel ID="tbAdd" runat="server" HeaderText="Lista analize neadaugate">
                                    <ContentTemplate>
                                        <asp:PlaceHolder ID="plcAnalyseAdd" runat="server" />
                                    </ContentTemplate>
                                </ajaxToolKit:TabPanel>
                                <ajaxToolKit:TabPanel ID="tbRemove" runat="server" HeaderText="Lista analize adaugate">
                                    <ContentTemplate>
                                        <asp:PlaceHolder ID="plcAnalyseRemove" runat="server" />
                                    </ContentTemplate>
                                </ajaxToolKit:TabPanel>
                            </ajaxToolKit:TabContainer>
                        </td>
                    </tr>
                </table>
            </div>
            <div id="divLinkHome" style="padding: 10px">
                <asp:Image runat="Server" ID="imgReturnMain" ImageUrl="~/Images/Hipocrate/icon_home.gif"
                    AlternateText="Click to return" UseSubmitBehavior="false" Style="cursor: pointer" />
                <asp:HyperLink ID="lnkMainPage" runat="server" Text="Inapoi la pagina principala"
                    NavigateUrl="~/Default.aspx" />
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <asp:Button ID="btnShowPopup" runat="server" Style="display: none" />
    <ajaxToolKit:ModalPopupExtender ID="mdlPopupDistrict" runat="server" TargetControlID="btnShowPopup"
        PopupControlID="pnlPopup" CancelControlID="CancelButton1" BackgroundCssClass="modalBackground"
        PopupDragHandleControlID="pnDragHandleSelection1" RepositionMode="RepositionOnWindowResizeAndScroll">
    </ajaxToolKit:ModalPopupExtender>
    <asp:Panel ID="pnlPopup" runat="server" CssClass="modalPopup" Style="display: none;"
        Width="500px">
        <asp:Table runat="server" ID="tblTitle1" Style="background-color: #87cefa; border: solid 1px Gray;
            width: 500px">
            <asp:TableRow>
                <asp:TableCell Width="100%" HorizontalAlign="Center">
                    <asp:Panel runat="server" ID="pnDragHandleSelection1" Style="cursor: move;">
                        <b style="color: White">Localitatile judetului</b>
                    </asp:Panel>
                </asp:TableCell>
                <asp:TableCell>
                    <asp:Image ID="CancelButton1" AccessKey="c" runat="server" ImageUrl="~/Images/Hipocrate/icon_post_delete.gif"
                        Style="cursor: pointer" title="<%$ Resources:DatabaseStrings, Close %>" />
                </asp:TableCell>
            </asp:TableRow>
        </asp:Table>
        <asp:UpdatePanel ID="UpLocalitate" runat="server" UpdateMode="Always">
            <ContentTemplate>
                <table id="searchFormLocalitate" align="center" border="0" cellspacing="2" style="max-height: 600px"
                    width="92%">
                    <tr class="tdn">
                        <td width="10%">
                            <asp:Literal ID="labelLocalitate" runat="server">Localitatea</asp:Literal>:
                        </td>
                        <td colspan="3">
                            <asp:TextBox ID="txtCityName" runat="server" Style="width: 92%" CssClass="boxPopup" />
                        </td>
                    </tr>
                    <tr class="tdn">
                        <td width="10%">
                            <asp:Literal ID="labelCodDRG" runat="server">Cod DRG</asp:Literal>:
                        </td>
                        <td width="40%">
                            <asp:TextBox ID="strDRGCode" runat="server" Style="width: 92%" CssClass="boxPopup" />
                        </td>
                        <td width="10%">
                            <asp:Literal ID="labelMediu" runat="server">Mediul</asp:Literal>:
                        </td>
                        <td width="40%">
							&nbsp;&nbsp;
                            <asp:DropDownList ID="strCityType" runat="server">
                                <asp:ListItem Value="" />
                                <asp:ListItem Value="u">Urban</asp:ListItem>
                                <asp:ListItem Value="r">Rural</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td align="center" colspan="4">
                            <asp:Button ID="btnCautaLocalitate" runat="server" Text="Cauta" ToolTip="Click pentru a cauta (ALT+f)"
                                Width="106" Height="20" OnClick="btnCautaLocalitate_Click" AccessKey="f" />
                        </td>
                    </tr>
                </table>
                <div class="menu_th">
                </div>
                <div style="overflow: auto; height: 280px; vertical-align: top; width: 100%">
                    <asp:Repeater ID="rptResultsLocalitate" runat="server" OnItemDataBound="repeaterResultsLocalitate_ItemDataBound">
                        <HeaderTemplate>
                            <table align="center" border="0" style="max-height: 280px" width="92%">
                                <thead class="tdh">
                                    <tr>
                                        <th>
                                            Cod DRG
                                        </th>
                                        <th>
                                            Denumire
                                        </th>
                                        <th>
                                            Tip
                                        </th>
                                    </tr>
                                </thead>
                                <tbody>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <tr class="tdn">
                                <td width="1%">
                                    <asp:LinkButton ID="cod" runat="server" OnClick="SelectLocalitate">
										<%# DataBinder.Eval(Container.DataItem, "Localitate_Cod")%>
                                    </asp:LinkButton>
                                </td>
                                <td>
                                    <%# DataBinder.Eval(Container.DataItem, "LocalitateUrbanRural").Equals("u")?"<strong>":"" %>
                                    <asp:LinkButton ID="nume" runat="server" OnClick="SelectLocalitate" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "LocalitateNume")%>'>
										<%# DataBinder.Eval(Container.DataItem, "LocalitateNume")%>
                                    </asp:LinkButton>
                                    <%# DataBinder.Eval(Container.DataItem, "LocalitateUrbanRural").Equals("u")?"</strong>":"" %>
                                </td>
                                <td width="1%">
                                    <b><font color="<%# GetColourForSetElementType(DataBinder.Eval(Container.DataItem, "LocalitateUrbanRural").ToString())%>">
                                        <%# DataBinder.Eval(Container.DataItem, "LocalitateUrbanRural")%>
                                    </font></b>
                                </td>
                            </tr>
                        </ItemTemplate>
                        <FooterTemplate>
                            </tbody> </table>
                        </FooterTemplate>
                    </asp:Repeater>
                </div>
                <div class="divEndTotal">
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
    </asp:Panel>
    <asp:Button ID="btnShowPopupP" runat="server" Style="display: none" />
    <ajaxToolKit:ModalPopupExtender ID="mdlPopupPatient" runat="server" TargetControlID="btnShowPopupP"
        PopupControlID="pnlPopupP" CancelControlID="CancelButtonP" BackgroundCssClass="modalBackground"
        PopupDragHandleControlID="pnDragHandleSelectionP" RepositionMode="RepositionOnWindowResizeAndScroll">
    </ajaxToolKit:ModalPopupExtender>
    <asp:Panel ID="pnlPopupP" runat="server" CssClass="modalPopup" Style="display: none;"
        Width="570">
        <asp:Table runat="server" ID="tblHeaderPatient" Style="background-color: #87cefa;
            border: solid 1px Gray; width: 570px">
            <asp:TableRow>
                <asp:TableCell Width="100%" HorizontalAlign="Center">
                    <asp:Panel runat="server" ID="pnDragHandleSelectionP" Style="cursor: move;">
                        <b style="color: White">Pacienti gasiti:</b>
                    </asp:Panel>
                </asp:TableCell>
                <asp:TableCell>
                    <asp:Image ID="CancelButtonP" AccessKey="c" runat="server" ImageUrl="~/Images/Hipocrate/icon_post_delete.gif"
                        Style="cursor: pointer" title="<%$ Resources:DatabaseStrings, Close %>" />
                </asp:TableCell>
            </asp:TableRow>
        </asp:Table>
        <asp:UpdatePanel ID="UpPatient" runat="server" UpdateMode="Always">
            <ContentTemplate>
                <div class="menu_th">
                </div>
                <div style="overflow: auto; height: 280px; vertical-align: top; width: 100%">
                    <asp:Repeater ID="rptResultsPatient" runat="server" OnItemDataBound="rptPatient_ItemDataBound">
                        <HeaderTemplate>
                            <table align="center" border="0" style="max-height: 280px" width="450">
                                <thead class="tdh">
                                    <tr>
                                        <th style="width: 5%">
                                            Nr.
                                        </th>
                                        <th style="width: 25%">
                                            Nume
                                        </th>
                                        <th style="width: 20%">
                                            CNP
                                        </th>
                                        <th style="width: 20%">
                                            Data Nast.
                                        </th>
                                        <th style="width: 5%">
                                            Varsta
                                        </th>
                                        <th style="width: 5%">
                                            Sex
                                        </th>
                                        <th style="width: 20%">
                                            Adresa
                                        </th>
                                    </tr>
                                </thead>
                                <tbody>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <tr class="tdn">
                                <td width="5%">
                                   <span class="redFont"> <%# Container.ItemIndex+1 %></span>
                                </td>
                                <td width="25%">
                                    <asp:LinkButton ID="lnkName" runat="server" OnClick="SelectPatient">
                                        <b> <%# DataBinder.Eval(Container.DataItem, "FirstName")%>&nbsp;<%# DataBinder.Eval(Container.DataItem, "LastName")%> </b>
                                    </asp:LinkButton>
                                </td>
                                <td width="20%">
                                    <%# DataBinder.Eval(Container.DataItem, "CNP")%>
                                </td>
                                <td width="20%">
                                    <%# DataBinder.Eval(Container.DataItem, "sBirthDate")%>
                                </td>
                                <td width="5%">
                                    <%# DataBinder.Eval(Container.DataItem, "Age")%>
                                </td>
                                <td width="5%">
                                    <span class="navyFont"><%# getSex(Server.HtmlEncode(DataBinder.Eval(Container.DataItem, "Sex").ToString()))%></span>
                                </td>
                                <td width="20%">
                                    <span class="greenFont"><%# DataBinder.Eval(Container.DataItem, "Zone")%></span>
                                </td>
                            </tr>
                        </ItemTemplate>
                        <FooterTemplate>
                            </tbody> </table>
                        </FooterTemplate>
                    </asp:Repeater>
                </div>
                <div class="divEndTotal">
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
    </asp:Panel>
    <script language="javascript" type="text/javascript">
        var g_str_trDetailsRequest = 'trDetailsRequest';
        var g_str_imgHideShow = '<%= imgHideShow.ClientID %>';
        var g_str_tblDetBuletin = 'tblDetBuletin';
        var g_str_imgBuletin = '<%= imgBuletin.ClientID %>';
        var g_str_txtInvCNP = '<%= txtInvCNP.ClientID %>';
        var g_str_drpInvSex = '<%= drpInvSex.ClientID %>';
        var g_str_txtInvNascut = '<%= txtInvNascut.ClientID %>';
        var g_str_drpJudet = '<%= drpJudet.ClientID %>';
        var g_str_mdlPopupDistrict = '<%=mdlPopupDistrict.ClientID %>';

        var bShowDetails = true;
        var bShowBuletinDetails = true;
        var g_str_trAddInvMedic = 'trAddInvMedic';
        var g_str_trInvMedicul = 'trInvMedicul';
        var g_str_rdAddMedic = '<%= rdAddMedic.ClientID %>';
        var g_str_rInvMedic = '<%= rInvMedic.ClientID %>';


        function hideShowGeneral() {
            hideShowRequest();
            hideShowReqBuletin();
        }

        function disabledTR(str) {
            if (str == '1') {
                $get(g_str_rdAddMedic).checked = true;
                $get(g_str_rInvMedic).checked = false;

            }
            else {
                $get(g_str_rdAddMedic).checked = false;
                $get(g_str_rInvMedic).checked = true;
            }
        }

        function hideShowRequest() {
            if (bShowDetails) {
                $get(g_str_trDetailsRequest).style.display = 'none';
                bShowDetails = false;
                $get(g_str_imgHideShow).src = "../../Images/Hipocrate/on_Up.jpg";
            }
            else {
                $get(g_str_trDetailsRequest).style.display = 'block';
                bShowDetails = true;
                $get(g_str_imgHideShow).src = "../../Images/Hipocrate/on_Down.jpg";
            }
        }

        function hideShowReqBuletin() {
            if (bShowBuletinDetails) {
                $get(g_str_tblDetBuletin).style.display = 'none';
                bShowBuletinDetails = false;
                $get(g_str_imgBuletin).src = "../../Images/Hipocrate/on_Up.jpg";
            }
            else {
                $get(g_str_tblDetBuletin).style.display = 'block';
                bShowBuletinDetails = true;
                $get(g_str_imgBuletin).src = "../../Images/Hipocrate/on_Down.jpg";
            }
        }

        function showChangers(id) {
            alert(id);
           }

		function AskDeleteAnalyse(reqId, analyseClass, guid) {
			if (confirm("Sunteti sigur ca doriti sa anulati rezultatele acestei investigatii?")) {
				PageMethods.DeleteAnalyse(reqId, analyseClass, null, onDeleteAnalyseSuccess);
				// &bidrectional=... //currentMachineIsBidirectional = rs("IsBi")
			}
		}

		function onDeleteAnalyseSuccess(response) {
			//alert($get('<%=pageReloadAddress.ClientID %>').innerText);
			$get('<%=tabContainer.ClientID %>').style.display = 'none';
			$get('<%=clientUpdateProgress.ClientID %>').style.display = 'block';
			window.location = $get('<%=pageReloadAddress.ClientID %>').innerText;
		}

    </script>
</asp:Content>
